﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HKEA.CMS.Core.Utility;

namespace WebApplication
{
    public partial class WebServiceTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void Button1_Click(object sender, EventArgs e)
        {

            localhost.M_Login login = new localhost.M_Login();
            string info = login.Login(strUserID.Text, strPWD.Text);
            if (!string.IsNullOrEmpty(info))
            {
                string[] temp = info.Split('_');
                int loginuid=0;
                int customeruid=0;
                if (int.TryParse(temp[0], out loginuid) && int.TryParse(temp[1], out customeruid))
                {
                    Response.Redirect("http://" + ConfigurationManager.GetMemberLoginFrom() + "/Jump.aspx?loginid=" + loginuid);
                }
            }
        }
    }
}